import { request } from '@/plugins/request'

// 获取用户信息
export const getUser = () => {
    return request({
        method: 'get',
        url: '/api/user'
    })
}

// 更新用户信息
export const updateUser = data => {
    return request({
        method: 'put',
        url: '/api/user',
        data
    })
}